package com.aoip.telemetry.telemetry.configureui.business.commonconfig.factorystation.service;

import com.aoip.telemetry.telemetry.configureui.business.commonconfig.factorystation.entity.FactoryStationBaseEntity;

import java.util.List;

/**
 * @author chenbai
 * @version 1.0
 * @date 2022/4/23 14:47
 */
public interface FactoryStationBaseService {

    /**
     * 查询厂站列表
     *
     * @param entity 厂站实体
     * @return java.util.List<com.aoip.telemetry.telemetry.configureui.business.commonconfig.factorystation.entity.FactoryStationBaseEntity>
     * @author chenbai
     * @date 2022/4/23
     **/
    List<FactoryStationBaseEntity> list(FactoryStationBaseEntity entity);

    /**
     * 查询厂站单条信息
     *
     * @param id 数据id
     * @return com.aoip.telemetry.telemetry.configureui.business.commonconfig.factorystation.entity.FactoryStationBaseEntity
     * @author chenbai
     * @date 2022/4/23
     **/
    FactoryStationBaseEntity detail(String id);

    /**
     * 新增单条厂站信息
     *
     * @param entity 厂站实体
     * @return int
     * @author chenbai
     * @date 2022/4/23
     **/
    int insert(FactoryStationBaseEntity entity);

    /**
     * 修改单条厂站信息
     *
     * @param entity 厂站实体
     * @return int
     * @author chenbai
     * @date 2022/4/23
     **/
    int update(FactoryStationBaseEntity entity);

    /**
     * 初始化数据到redis缓存库
     *
     * @return int
     * @author chenbai
     * @date 2022/4/23
     **/
    int initCache();

    /**
     * 逻辑删除厂站信息
     *
     * @param ids 数据id集合
     * @author chenbai
     * @date 2022/4/23
     **/
    void delete(Long[] ids);
}
